package st.magnuzon.books.client.scaffold;

import st.magnuzon.books.client.scaffold.ui.LoginWidget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.NotificationMole;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;

public class ScaffoldViewerShell extends Composite {

	interface Binder extends UiBinder<Widget, ScaffoldViewerShell> {
	}
	
	private static final Binder BINDER = GWT.create(Binder.class);

	private static st.magnuzon.books.client.scaffold.ScaffoldViewerShell instance;
	
	@UiField
	LoginWidget loginWidget;
	@UiField
	NotificationMole mole;
	@UiField
	SimplePanel master;

	public ScaffoldViewerShell() {
		initWidget(BINDER.createAndBindUi(this));
	}

	public static st.magnuzon.books.client.scaffold.ScaffoldViewerShell instance() {
        if (instance == null) {
            instance = new ScaffoldViewerShell();
        }
        return instance;
    }

	public NotificationMole getMole() {
		return mole;
	}

	public AcceptsOneWidget getMasterPanel() {
		return master;
	}
}
